<?php
require_once "dvr.php";
$strvalue = $_GET['value'];
$strvalue = TranslateString($strvalue);
$value_array = BuildArraybyString($strvalue);
$mac = GetArrVarbyKey('mymac',$value_array);
$ip = GetArrVarbyKey('myip',$value_array);
$port = GetArrVarbyKey('myhttp',$value_array);
$type = GetArrVarbyKey('mytype',$value_array);
$offline_str = GetArrVarbyKey('offline',$value_array);
$online = 1;
if($offline_str == 'yes')
{
	$online = 0;
}
$result = UpdateByMac($mac,$ip,$port,$type,$online);
echo $result;
?>